package com.hue.netty.day02.five;

import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class ServerInitializer extends ChannelInitializer<SocketChannel> {
    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        ch.pipeline().
                //解码器
                addLast(new ServerByteToLongHandler()).
                //编码器
                addLast(new ServerLongToByteHandler()).
                addLast(new ServerHandler());
    }
}
